home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Shareware / Programare / sharp / wwwSharp_setup.exe / {app} / Examples / Form / index.hta < prev    next >
Text File  |  2003-12-03  |  1KB  |  35 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4.     <TITLE>www-Sharp.ClrHost Form sample</TITLE>
  5.     <META name="GENERATOR" content="MSHTML 6.00.2800.1264">
  6.     <META http-equiv="MSThemeCompatible" content="Yes">
  7.     <OBJECT id="AppDomain" classid="clsid:89F1D07D-3AC6-4ACB-B8A4-8EDDDCB0142E"></OBJECT>
  8.     <OBJECT id="myForm" classid="clsid:4CC2B254-F4C7-4F52-881E-C2E10B14E003">
  9.         <PARAM name="AssemblyName" value="SimpleForm">
  10.         <PARAM name="TypeName" value="wwwSharp.ClrHost.Examples.SimpleForm">
  11.         <PARAM name="BackColor" value="ivory">
  12.         <PARAM name="Size" value="250; 150">
  13.     </OBJECT>
  14. <SCRIPT language="JScript">
  15. function OnBtnFormFromScriptClick()
  16. {
  17.     var form;
  18.     form = AppDomain.CreateInstance("SimpleForm", "wwwSharp.ClrHost.Examples.SimpleForm");
  19.     form.ShowDialog();
  20. }
  21.  
  22. function OnBtnFormObjectClick()
  23. {
  24.     myForm.ShowDialog();
  25. }
  26. </SCRIPT>
  27. </HEAD>
  28. <BODY>
  29.     <BUTTON id="btnFormScript" onclick="OnBtnFormFromScriptClick()">Create form from 
  30.         script.</BUTTON>
  31.     <BUTTON id="btnFormObject" onclick="OnBtnFormObjectClick()">Show form using OBJECT.
  32.     </BUTTON> 
  33. </BODY>
  34. </HTML>
  35.